#!/usr/bin/env bash
while true
do
# 总站列表页
python_pid=`ps aux |grep start_task_crawler.py |grep python | grep -w cmb_gsxt_all_searchlist.conf | grep -w gsxt | awk '{print $2;}'`
if [ "$python_pid" == '' ]; then
    nohup python start_task_crawler.py 'config/cmb_gsxt_all_searchlist.conf' 'gsxt' > log/searchlist_gsxt.log 2>&1 &
fi
echo ${python_pid}

inter_time=10
sleep ${inter_time}
done